﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>齐重数控官方网站</title>
<meta http-equiv="keywords" content="齐重数控,topic"></meta>
<meta http-equiv="description" content="齐重数控官方网站"></meta>
<link href="<%=request.getContextPath()%>/qzsk/css/qzsq.css"
	rel="stylesheet"></link>
<link href="<%=request.getContextPath()%>/qzsk/css/style.css"
	rel="stylesheet"></link>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/resources/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/resources/js/jquery.media.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/qzsk/js/viewOnline.js"></script>
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/qzsk/css/main.css"></link>
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/qzsk/css/fix.css"></link>
<link href="<%=request.getContextPath()%>/resources/outeam/style.css"
	rel="stylesheet" type="text/css" media="all" />
</head>
<body>
	<jsp:include page="top.jsp"></jsp:include>
	<div class="n_cont">
<center>
		<div class="wrap fix">
			<div class="l side">
				<dl class="side_menu">
					<dt class="Tit2">${pc.name}</dt>
					<c:forEach var="c" items="${cs}">
						<dd id="left101001" class="open">
							<a href="${c.id }.do"> <c:choose>
									<c:when
										test="${c.name==channel.name or c.name==channel.parent.name}">
										<span style="color: red">${c.name }</span>
									</c:when>
									<c:otherwise> ${c.name }</c:otherwise>
								</c:choose>
							</a>
						</dd>
					</c:forEach>
				</dl>
			</div>
			<div class="r main dhe">
				<h2 class="Tit2"></h2>
				<div class="posi">
					<div class="layer">
						<table>
							<tr>
								<td>当前您的位置:&nbsp; &nbsp; &nbsp; <a
									href="<%=request.getContextPath()%>/index.do">首页</a></td>
								<td>| <a
									href="<%=request.getContextPath()%>/channel/${pc.id}.do">${pc.name
							}</a></td>
								<td>| <span style="color: purple">${channel.name } </span></td>
								<td>| <span><a style="color: red"
										href="javascript:history.go(-1);">返回</a></span></td>
							</tr>
						</table>
					</div>
				</div>
				<div class="myart">
					<table>
						<c:if test="${datas.total le 0}">
							<tr>
								<td>该栏目还没有任何信息....</td>
							</tr>
						</c:if>
						<c:if test="${datas.total gt 0 && channel.type=='TOPIC_LIST'}">
							<c:forEach items="${datas.datas}" var="topic">
								<tr>
									<td><a class="newsTitle"
										href="<%=request.getContextPath() %>/topic/${topic.id}.do">●
											${topic.title }</a></td>
									<td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
										[<fmt:formatDate value="${topic.publishDate }"
											pattern="yyyy-MM-dd" />]
									</td>
								</tr>
							</c:forEach>
							<tfoot>
								<tr>
									<td colspan="2">
										<div class="page mt20">
											<span class="goprev"> <jsp:include
													page="/jsp/index_pager.jsp">
													<jsp:param value="${datas.total }" name="totalRecord" />
													<jsp:param value="" name="url" />
												</jsp:include></span>
										</div>
									</td>
								</tr>
							</tfoot>
						</c:if>

						<c:choose>
							<c:when test="${!empty encryption}">
							<span><tr><td>此内容加密，请输入访问密码</td></tr></span>
							<div class="visit-form-box">
									<form
										action="<%=request.getContextPath() %>/channel/${channel.id }.do"
										method="post">
										<input type="password" name="visitPassword"
											id="visit-password"  placeholder="请输入密码"/> <input class="visit-button" type="submit" value="提交" />
									</form>
									<c:if test="${!empty visitError}">
									<span class="visitError-font">${visitError}</span>
									</c:if>
								</div>
							</c:when>
							<c:otherwise>
								<c:if test="${channel.type=='TOPIC_CONTENT'}">
									<c:choose>
										<c:when test="${!empty ff }">
											<c:forEach var="c" items="${cs}">
												<c:if test="${c.name==channel.parent.name}">
													<span>${c.name }:</span>
												</c:if>
												</dd>
											</c:forEach>
											<div>
												<c:forEach items="${cc}" var="ccc">
													<tr>
														<td>
															<div class="">
																<a
																	href="<%=request.getContextPath()%>/channel/${ccc.id}.do"
																	class="cccFont">${ccc.name }</a>
															</div>
														</td>
													</tr>
												</c:forEach>
												<tr>
													<td><img
														src="<%=request.getContextPath()%>/qzsk/images/quzhou.JPG"
														width="766px" height="230px;"></img></td>
												</tr>
											</div>
										</c:when>
										<c:when test="${!empty cc and empty ff}">
											<tr>
												<td>
													<div class="cccBox">
														<div class="cccPos">
															<div style="float: left; font-size: 15px;">内容分页：</div>
															<c:forEach items="${cc}" var="ccc">
																<c:choose>
																	<c:when test="${ccc.name==channel.name }">
																		<div class="ctFontBox">
																			<a
																				href="<%=request.getContextPath()%>/channel/${ccc.id}.do"
																				style="color: red;" class="ctFont">${ccc.name }</a>
																		</div>
																	</c:when>
																	<c:otherwise>
																		<div class="ctFontBox">
																			<a
																				href="<%=request.getContextPath()%>/channel/${ccc.id}.do"
																				class="ctFont">${ccc.name }</a>
																		</div>
																	</c:otherwise>
																</c:choose>
															</c:forEach>
														</div>
													</div>
												</td>
											</tr>
											<tr>
												<td>${topic.content }</td>
											</tr>
											<tr>

												<td><span>发布时间:</span> <fmt:formatDate
														value="${topic.publishDate }"
														pattern="yyyy-MM-dd HH:mm:ss" /> &nbsp;<span>发布人:</span>${topic.author }</td>
											</tr>
										</c:when>
										<c:otherwise>
											<c:if test="${ empty topic.content and empty ff}">
												<tr>
													<td>该栏目还没有任何信息....</td>
												</tr>
											</c:if>
											<c:if test="${ !empty topic.content and empty ff}">
												<tr>
													<td>${topic.content }</td>
												</tr>
												<tr>
													<td><span>发布时间:</span> <fmt:formatDate
															value="${topic.publishDate }"
															pattern="yyyy-MM-dd HH:mm:ss" /> &nbsp;<span>发布人:</span>${topic.author }</td>
												</tr>
											</c:if>
										</c:otherwise>
									</c:choose>
								</c:if>
							</c:otherwise>
						</c:choose>
						<c:if test="${channel.type=='VIDEO_LIST' && empty topic.content}">
							<tr>
								<td>该栏目还没有任何信息....</td>
							</tr>
						</c:if>
					</table>
				</div>
			</div>
		</div>
</center>
	</div>
	<div class="center-bf"><jsp:include page="foot.jsp"></jsp:include></div>
</body>
</html>


